﻿<Window x:Class="MPE.SpecInput"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:MPE"
        
        xmlns:fat="clr-namespace:FastColoredTextBoxNS;assembly=FastColoredTextBox"
        
        mc:Ignorable="d"
        Title="Специальная вставка" Height="450" Width="726.145" MouseLeftButtonDown="Window_MouseLeftButtonDown">
    <Grid>
        <WindowsFormsHost Background="Gray" HorizontalAlignment="Left" Width="465">
            <fat:FastColoredTextBox x:Name="text" ToolTipNeeded="getToolTip" AllowMacroRecording="False" IndentBackColor="#232629" LineNumberColor="White" AutoIndentNeeded="Text_AutoIndentNeeded" TextChanged="Field_TextChanged" ForeColor="White" BackColor="#232629" SelectionColor="Aqua"/>
        </WindowsFormsHost>
        <Label Content="Имя вставки" HorizontalAlignment="Left" Margin="470,1,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="14"/>
        <TextBox x:Name="name_input" GotFocus="Name_input_GotFocus" LostFocus="Name_input_LostFocus" HorizontalAlignment="Left" Height="23" Margin="471,35,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="242" Text="Имя_Номер"/>
        <Button x:Name="add" Click="Add_Click" Content="Взять" ToolTip="Скопировать текст выделенный в редакторе и добавить новую спец. вставку" HorizontalAlignment="Left" Margin="632,64,0,0" VerticalAlignment="Top" Width="81" FontWeight="Bold" FontSize="14" Foreground="#FF1E9319"/>
        <ListBox x:Name="oldInsert" SelectionChanged="OldInsert_SelectionChanged" Margin="470,125,5,0"/>
        <Label Content="Ранее добавленные" HorizontalAlignment="Left" Margin="470,91,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="14"/>
        <Button x:Name="Dell" Content="Удалить" ToolTip="Удалить выделенный ранее добавленный элемент спец. вставки" Margin="632,94,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="14" Click="Dell_Click" Foreground="#FFC50000" HorizontalAlignment="Left" Width="81"/>
        <Button x:Name="Paste" Content="Вставить" ToolTip="Вставить выбранную спец. вставку на место курсора в редакторе" Margin="471,64,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="14" Click="Paste_Click" Foreground="Black" Background="#FFDDDDDD" BorderBrush="#FF707070" HorizontalAlignment="Left" Width="156"/>
    </Grid>
</Window>
